package com.ec.au.domain.dto;

import lombok.Data;
import reactor.util.annotation.Nullable;

import javax.validation.constraints.Email;
import javax.validation.constraints.NotBlank;
import java.io.Serializable;
@Data
public class UserRegisterFormDTO implements Serializable {
    @NotBlank(message = "用户名不能为空！")
    private String username;
    @NotBlank(message = "密码不能为空！")
    private String password;

    @Nullable
    @Email(message = "邮箱格式不正确")
    private String email;
    @Nullable
    private String phone;
    @NotBlank(message = "用户角色不能为空！")
    private long roleId;
}